projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b73fa0
)
(byte-compile-warning-prefix): Correctly compute line number.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 11 Mar 2007 21:16:09 +0000
(21:16 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 11 Mar 2007 21:16:09 +0000
(21:16 +0000)
lisp/emacs-lisp/bytecomp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/bytecomp.el
b/lisp/emacs-lisp/bytecomp.el
index 1d7cbfc422c16cd3303c96424abefa888a51089a..f74e48c46350ee0d787f8b67d941ed9c8ce5ea6a 100644
(file)
--- a/
lisp/emacs-lisp/bytecomp.el
+++ b/
lisp/emacs-lisp/bytecomp.el
@@
-972,8
+972,10
@@
Each function's symbol gets added to `byte-compile-noruntime-functions'."
(pos (if (and byte-compile-current-file
(integerp byte-compile-read-position))
(with-current-buffer byte-compile-current-buffer
- (format "%d:%d:" (count-lines (point-min)
- byte-compile-last-position)
+ (format "%d:%d:"
+ (save-excursion
+ (goto-char byte-compile-last-position)
+ (1+ (count-lines (point-min) (point-at-bol))))
(save-excursion
(goto-char byte-compile-last-position)
(1+ (current-column)))))